﻿@inherits AdminCompontentBase

<DefaultSheetDialog @bind-Value=_visible Title="@T("Edit Team")">
    <SElevationTab NoTransition Dense Style="height: calc(100% - 40px);" @bind-Tab="@_tab" Tabs='_tabs' ItemsClass="mt-8 full-height">
        <SElevationTabItem>
            <TeamBasicInfo @bind-Value="Dto.TeamBasicInfo" />
        </SElevationTabItem>
        <SElevationTabItem>
            <TeamAdmin IgnoreStaffIds="Dto.TeamMember.Staffs" @bind-Value="Dto.TeamAdmin" />
        </SElevationTabItem>
        <SElevationTabItem>
            <TeamMember IgnoreStaffIds="Dto.TeamAdmin.Staffs" @bind-Value="Dto.TeamMember" />
        </SElevationTabItem>
    </SElevationTab>
    <MCardActions class="d-flex align-center px-6">
        <SButton Text Color="error" MinWidth="100" OnClick="OnDeleteHandler">
            @T("Delete")
        </SButton>
        <MSpacer />
        <SButton Medium MinWidth="100" OnClick="OnUpdateHandler">@T("Save")</SButton>
    </MCardActions>
</DefaultSheetDialog>